/**
 * @description router全局配置，如有必要可分文件抽离，其中asyncRoutes只有在intelligence模式下才会用到，pro版只支持remixIcon图标，具体配置请查看vip群文档
 */
const List = [
  {
    path: '/index',
    name: 'Index',
    component: '@/views/index/index',
    meta: {
      title: '首页',
      icon: 'home-2-line',
      noClosable: true,
    },
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: '@/views/index/dashboard',
    meta: {
      title: '看板',
      icon: 'dashboard-line',
    },
  },
  {
    path: '/workbench',
    name: 'Workbench',
    component: '@/views/index/workbench',
    meta: {
      title: '工作台',
      icon: 'settings-6-line',
      dot: true,
    },
  },
  {
    path: '/store',
    name: 'Store',
    component: '@/views/index/store',
    meta: {
      title: '仓库',
      icon: 'app-store-line',
      dot: true,
    },
  },
]

module.exports = [
  {
    url: '/router/getList',
    type: 'get',
    response() {
      return {
        code: 200,
        msg: 'success',
        data: { list: List },
      }
    },
  },
]
